package net.sourceforge.openclixml.domcomparator;


/**
 * This exception is used in the DOMComparator and is thrown when two incompatible DOM nodes are being compared.
 * @version $Revision: 39 $
 * @author dominikjungo
 *
 * Last changed: $Date: 2008-01-22 21:38:51 +0100 (Tue, 22 Jan 2008) $
 * The License for this file can be found in doc/Licenses/license-OpenCliXML.txt
 */
public class ComparingNotSupportedException extends RuntimeException {
    /**
     * This exception is raised if two incompatible xml Nodes (org.w3c.xml) are compared by the DomComparator.
     * @param o1 the first node
     * @param o2 the second node
     */
    public ComparingNotSupportedException(final Object o1, final Object o2) {
        super("Tried to compare " + o1 + "(" + o1.getClass() + ") with " + o2 +
            "(" + o2.getClass() + ") . " + o1.getClass() + " and " +
            o2.getClass() + " cannot be compared with eachother.");
    }
}
